From: Andrew Cooper Date: Mon, 25 Nov 2013 11:04:20 +0000 (+0000) Subject: firmware/tcgbios: Prevent integer truncation in the return value X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5863 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=944cea4588bb825c7e91396dcffa3436733d5f54;p=xen.git firmware/tcgbios: Prevent integer truncation in the return value rc inside the function is uint32_t. None of the callers check the return value. Coverity ID: 1055442 Signed-off-by: Andrew Cooper Acked-by: Ian Campbell CC: Keir Fraser CC: Jan Beulich CC: Ian Jackson --- diff --git a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c index d5e2202df4..01d4f2f6b0 100644 --- a/tools/firmware/rombios/32bit/tcgbios/tcgbios.c +++ b/tools/firmware/rombios/32bit/tcgbios/tcgbios.c @@ -428,7 +428,7 @@ uint32_t tcpa_get_laml(void) * data : pointer to the data (i.e., string) to be added to the log * length : length of the data */ -static uint16_t +static uint32_t tcpa_add_measurement_to_log(uint32_t pcrIndex, uint32_t event_type, uint32_t event_id,